package com.nais.alipay;

import java.io.FileWriter;
import java.io.IOException;

public class AlipayConfig {

	// 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
	public static String app_id = "2016080800192152";
	
	// 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCg4JydSp+p6m+OV5dgkmiIiWo9zqseFRLRgPrDK8gY/Z82MliueiwGk1Z4UDOBaNH2YUQgEKdh/bo+aSJdiZtuQwNagYvg3BWfhVgVCS9pmxbxA2JOOWEd1YHUBBH6rk23nYA/5fUKDjAggOYX79olj1z3u9LO1OtcCf/hRBO0QozbYxFaZaGpNAn5lGoM5ffq1Z7HwZLxWcMsmdNzGmBhvk3DqW6HcGWwwgFF1d4DfDHyX5+1L0BTdIHbQeyk70nZEB3PZX/Dkih/484o3WveB2BKHhR6uI7Ts6MCVbYP40MetHyRYRz+NPnWyW7X+g3EI4y6KxvC/Uqk7dyNB9h3AgMBAAECggEBAJoC7WvXSMrN2EYYrJ6TCufLRZ4t/7soyX8vTuERRNpH0ud7g1JlO0iAPMOpY+V7h6WqsCFSUCuLT4T3+SI63kXMeaVnZ5W4nCq+6Pgadv1Or8PDTZU9cS+yejuSOfQWcehaK7EAYHlj48b6H0zDHb/fY0z2znWbeEYAfKoXFhX2KsmXqebSQuYXL7RinXB3ElLE3Wzhl76xIKCYpB8Z3uyNHSJ3dtEDpLu5Sd9PvC+K8qh+kV9e8eu7Xa+3ios/IKEdY18VAe4xsxQdfnf0oHuwfOeP3sthV+PI2fwHK5QDsZ8xWH++XB2rBuQoszv0/JnQGWNu8yLs1d1knN4urOECgYEA12kXQRSzItb/F3Yj4mQBYYmaU6BVTM/Ji9nuEdBbwuVj9ImYNygUdXOscZ1bdaQrocJJWUjCp3eiUeJTVgnkj1x/Dj7uS47rhsVruiAjqp52Qr2q7hB/etTrPOJ5MQrM0VKVkzDo+lftnuULJvGEllVy/rzcEnKCprP8cfGo1o0CgYEAvzD329V8yoz2l6/fgesbQKLpdShwWgq+GR8XIae25ztgqHPG6phTrDbCdnjMCF+L9sDaJ/GWrz2Yy7sFKvSCM3nASvB7gjVjCjn4CxFY0htg5lmGK83U2hD2NKajYVhDnYKppOeIbLMDSwScxpE+iwGtOnV3B4tEwq50xw5KnBMCgYBPln6HBzTgjHsXmgjMHpL8DLE+cKDTjnoy98QkRM2ChuqVcTkSN/bHJoPyPmeKYavVSkl7eYyh/2uzwWF1Cpat+UjgZJP6ysVuuAaDcFh9M6sSIa3D48iWA5Een7aTTiA6vr6Q8aNCy7X53TpvmxCX0t54DCNrlW98VEfTeaweCQKBgCRAGp656cFV3OOB2zT86Nvmh7FJC5Rm+Qg2VuJwtEM/hOIroYmVfDfo4hIocTcdNqKAilyMd++eFDx8p0wvtAgii40p76EOkkq8FwWyMk8UFdlXHBNuIW9/S89L0SqB28AfqB62L628e2Fb7IXRwDQHC1tMLldl1pG7FjUvxoG1AoGAc+fFjvDFmHz8LFPK8OjavHwl6NYuWvA/mrxTTqz99dO55eEA5SJMCMnXMBbTEk4qxOx1iXJz6xAnBoiiFfkZGZzCjJ3jJdmHp7vvQi+5CrJ60fKi2SbmzUSi2/syMiKMM5jD/wWD0lihWUf/h5JvYJEIT3uHpEIkDm17rrC4xM4=";
	
	// 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAs+aN+aKXDe6bt8MSuE7IKjYZDkzDyxcZeamUoNpf5BjUaL+DDhtoo0fGkfivfPbiFrv4Cuq+uPJrTIUcE7X9WleOloRDde5O4uMPaxEKyk5NGB9/ov+y7d/Wm0OoHPCuf3maqJF952ohtkvLH/LWTPy+R7iyVu8RDzvOMU1GiFmkCQscHMyTnb4ROys9xXAyIXxyxlGM7InuDbLy4AluxMplhxF+pStTf8US8daDH7BQfi9OG2/5sPwARUTCOZdhDRsI1CSGKLic+oqOUOxpocMAfo2ou2C/CtSGZvCPl7mC5XEOTBbwpgY4qadhbk2JDinGTN6XTvo6D0Wof2XYNwIDAQAB";

	// 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
	public static String notify_url = "http://43.241.229.59:8080/pay/alipay/notify";

	// 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
	public static String return_url = "http://43.241.229.59:8080/pay/alipay/return";

	// 签名方式
	public static String sign_type = "RSA2";
	
	// 字符编码格式
	public static String charset = "utf-8";
	
	// 支付宝网关
	public static String gatewayUrl = "https://openapi.alipaydev.com/gateway.do"; //"https://openapi.alipay.com/gateway.do";
	
	// 支付宝网关
	public static String log_path = "D:\\project\\alipay-wrapper\\alipay.trade.page.pay-JAVA-UTF-8";
	
}

